﻿<UserControl x:Class="CentralFoveaLab.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" Width="780" Height="450"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="600"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="450" />
        </Grid.RowDefinitions>
        <Canvas x:Name="GraphContainer" Background="White" Grid.Column="0" Grid.Row="0">
        </Canvas>
        <Canvas x:Name="ControlContainer" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Background="#E1E1E1">
            <Rectangle x:Name="ColorRectangle" StrokeThickness="1"
				Fill="Blue" Stroke="Gray" Width="130" Height="81" 
				Canvas.Top="147" Canvas.Left="25" />
            <TextBlock Text="X" Canvas.Top="9" Canvas.Left="13" />
            <Slider x:Name="SliderX" 
				Canvas.Top="7" 
				Canvas.Left="25" 
				Width="150" 
				ValueChanged="SliderX_ValueChanged" 
				MouseEnter="SliderX_MouseEnter" />
            <TextBlock Text="Y" Canvas.Top="39" Canvas.Left="13" />
            <Slider x:Name="SliderY" 
				Canvas.Top="37" 
				Canvas.Left="25" 
				Width="150" 
				ValueChanged="SliderY_ValueChanged" 
				MouseEnter="SliderY_MouseEnter" />
            <TextBlock Text="Z" Canvas.Top="69" Canvas.Left="13" />
            <Slider x:Name="SliderZ" 
				Canvas.Top="69" 
				Canvas.Left="25" 
				Width="150"
				ValueChanged="SliderZ_ValueChanged" 
				MouseEnter="SliderZ_MouseEnter" />

            <TextBlock Text="X" Canvas.Top="102" Canvas.Left="13" />
            <TextBox x:Name="DegreesX" Text="0" 
				TextAlignment="Right" TabIndex="12"
				Width="30" 
				Canvas.Top="97" 
				Canvas.Left="25" 
				LostFocus="DegreesX_LostFocus" 
				KeyUp="DegreesX_KeyUp" />
            <TextBlock Text="Y" Canvas.Top="102" Canvas.Left="65" />
            <TextBox x:Name="DegreesY" Text="0" 
				TextAlignment="Right" TabIndex="13" 
				Width="30" 
				Canvas.Top="97" Canvas.Left="75" 
				LostFocus="DegreesY_LostFocus" 
				KeyUp="DegreesY_KeyUp" />
            <TextBlock Text="Z" Canvas.Top="102" Canvas.Left="115" />
            <TextBox x:Name="DegreesZ" Text="0" 
				TextAlignment="Right" TabIndex="14"
				Width="30" 
				Canvas.Top="97" Canvas.Left="125" 
				LostFocus="DegreesZ_LostFocus" 
				KeyUp="DegreesZ_KeyUp" />

            <Button x:Name="ResetBtn" Content="Rest Center" TabIndex="15" 
				Width="130" Canvas.Top="127" Canvas.Left="25" 
				Click="ResetBtn_Click" />
            <TextBox x:Name="txtPOS" Text="0" 
				TextAlignment="Right" TabIndex="14"
				Width="30"  
				Canvas.Top="255" Canvas.Left="15" 
				
				 />
            <Button x:Name="btnRestPos" Content="center" TabIndex="15" 
				Width="100" Canvas.Top="255" Canvas.Left="55" Click="btnRestPos_Click" 
				 />
        </Canvas>
    </Grid>
</UserControl>
